//-----------------------------------------------------------------------
// Skin name..............: Geezer VGA
// Skin version...........: 1.00 
// TodayPlus version......: 0.11.0
// Update date............: January 8th 2005
// Administrator..........: 

//------------------------------------------------------------------------

//------------------ Overall Regions Listed ----------------------------

// REGION	1,0             	Navigation (Button Area)
// REGION	2,0         		Main Page
// REGION  	3,1 - 3,3		Weather
// REGION  	4            		Upper Region for Main Page
// REGION  	4,1 - 4,2 		Battery and Special for Main Page - (Region 2)
// REGION  	4,3 - 4,6 		News Ticker for Main Page - (Region 6)
// REGION  	5,0           	Agenda Area for Main Page
// REGION  	6,0           	News Ticker for Main Page
// REGION  	7,0 - 7,5   	Weather Detail / Moon Phase / Astrological for Weather Page
// REGION  	8,0 	   	Weather (Weather Update Popup) for Weather Page
// REGION  	9,0           	POOM Agenda - Calendars
// REGION 	10,0          	POOM Agenda & Tasks Countdown - Calendars
// REGION 	11,0 - 11,1 	Time Zones
// REGION 	12,0          	News (RSS)
// REGION 	13,0          	News (RSS Header)
// REGION 	14,0          	News (RSS Text)
// REGION 	15,0 - 16,2     	Quicklaunch
// REGION	17,0		System
// REGION	18,0		System Update Popup
// REGION	19,0 - 19,1	User Info / Skin Info

//------------------ DEFINE PLUGIN HEIGHT, MAX and START SIZE (SPACE FOR DATA TO BE VISIBLE)

maxheight,288	//288 will be set size but can be adjusted to 640 for troubleshooting
height,288	//288 This will need to be adjusted for entire page once other regions are defined

//------------------ DEFINE WHICH REGIONS ARE DISPLAYED BY DEFAULT-------\\

initregion,1,0		// Quick Launch  				YES
initregion,2,0		// Main Page				YES
initregion,3,999		// Weather				NO
initregion,5,0		// Agenda on Main Page			YES
initregion,6,0		// News Ticker on Main Page			YES
initregion,7,999		// Weather Details				NO
initregion,8,999		// Weather Center Pop Up			NO
initregion,9,999		// Agenda Calendars				NO
initregion,10,999		// Agenda & Task Countdown Calendars		NO
initregion,11,999		// Time Zones				NO
initregion,12,999		// RSS News				NO
initregion,13,999		// RSS Header				NO
initregion,14,999		// RSS Text				NO
initregion,15,0		// Navigation (Button Area) 			YES
initregion,16,0		// Navigation (Sub Area)			YES
initregion,17,999		// System Screen				NO
initregion,18,999		// System Update PopUp			NO
initregion,19,999		// User Info/Skin Info			NO

initvar,var0,1		// Weather Main Page
initvar,var2,1  		// RSS Headlines
initvar,var9,1		// Weather Page - City
initvar,var24,2		// Button Images
initvar,var13,1		// Weather Scroll
initvar,var17,0		// Battery - System Storage
initvar,var15,0		// RSS Mainpage
initvar,var3,2          		// 2:small icon; 1:large icon (For QL Icons) 


//------------------ OTHER  DEFAULT OPTIONS ------------------\\


options,weathericondir,Weather Icons\Crystal_VGA,png

	if,var,var24,,=,1

		options,imagedir,Images\Icons-2B1

		else

		options,imagedir,Images\Icons-2B

	endif

	color,transparent,255_0_255
	color,replacement,0_0_0-,-1_6_-1
	color,shadow,125_125_125
	color,font,0_0_0

	calcvar,var18,fromconfig,numlauncher
	calcvar,var28,fromconfig,numrss
	calcvar,var29,fromconfig,numcities

	if,var,var24,,=,1

		options,imagedir,Images\Icons-2B1

		else

		options,imagedir,Images\Icons-2B

	endif

//=================================================
// 	Begin Main Viewing Page
//
// 	REGION 2 - PAGE 0
//	Container for Main Viewing Page Area
//	Subregions: Added Regions 4, 1-4,
//	Vars used:
//	Dimensions:  447 x 226
//=================================================

//=== Puts Date, Calendar, Abbreviated Weather, Immediate Agenda/Tasks and  ==\\
//=== Nifty News Ticker on Today Screen. 			            ==\\

region,2,0,10
defregion,2,0,85,447,226,1

clearregion,3
clearregion,7
clearregion,8
clearregion,9
clearregion,10
clearregion,11
clearregion,12
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,3
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,10
deactivatebuttons,11
deactivatebuttons,12
deactivatebuttons,17
deactivatebuttons,18
deactivatebuttons,19

activatebuttons,2
activatebuttons,4
activatebuttons,5
activatebuttons,15
activatebuttons,16

updateregions,5
updateregions,6
updateregions,15
updateregions,16

//====================================
//  Date - Time
//====================================

	changefont,tahoma,27,bi
	time,5,83,-1,5,ls,"dddd",

	changefont,tahoma,14,b
	time,5,109,-1,5,l,"MMMM dd, yyyy",
	time,5,120,-1,5,l,,"hh:mm tt"

	changefont,tahoma,13,

//===================================
// Abbreviated Weather
//===================================

	if,refresh

		color,font,125_125_125

		else

		color,font,0_0_0

	endif

	load,city,1

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240

		forecast,date_ddd,1,290,210,,,c  			// First Listed Day
		forecasticon,1,260,220,,t
		forecast,high,1,325,235,,,l
		forecast,low,1,325,245,,,l
		forecast,precipitation,1,325,255,,%,l

		forecast,date_ddd,2,380,210,,,c  			// Second Listed Day
		forecasticon,2,350,220,,t
		forecast,high,2,415,235,,,l
		forecast,low,2,415,245,,,l
		forecast,precipitation,2,415,255,,%,l

		else

		calcvar,var21,firstvalidforecastday

		if,var,var21,,<,6

			forecast,date_ddd,%var21%,290,210,,,c 	 // First Listed Day
			forecasticon,%var21%,260,220,,t
			forecast,high,%var21%,325,235,,,l
			forecast,low,%var21%,325,245,,,l
			forecast,precipitation,%var21%,325,255,,%,l

			addvar,var21,1

			else

			image,260,220,none.png,t

		endif

		if,var,var21,,<,6

			forecast,date_ddd,%var21%,380,210,,,c 	 // Second Listed Day
			forecasticon,%var21%,350,220,,t
			forecast,high,%var21%,415,235,,,l
			forecast,low,%var21%,415,245,,,l
			forecast,precipitation,%var21%,415,255,,%,l

			addvar,var21,1

			else

			image,350,220,none.png,t

		endif
	endif

//========================================
// Actual Updated Time
//========================================

	changefont,tahoma,14,b

	if,var,var20,,<,240

		text,260,195,Weather Updated: ,l
		text,375,195,[updatetime],l,hh:mm tt

		else

		text,260,195,Weather Updated: ,l
		color,font,255_0_0
		text,375,195,[updatetime],l,hh:mm tt
		color,font,0_0_0

	endif

	if,refresh

		image,260,195,ActualUpdate_main.png,t

		else
	endif

	button,260,195,83,13,-1,7,-nohighlight,-1
	button,260,195,83,13,-1,14,CFSOLVE.wav
	color,font,0_0_0

	changefont,tahoma,14,

//========================================
// Calendar on Main Page
//========================================

	image,388,87,Calender_header_horizontal_main_gray.png
	image,413,87,Calender_header_horizontal_main_red.png
	image,260,87,Calender_header_main.png

	changefont,tahoma,18,b
	time,346,85,-1,5,c,"MMMM",

	changefont,tahoma,14,b
	calendarheader,260,101,25
	changefont,tahoma,14,
	calendar,0,0,260,114,25,11,l
	changefont,tahoma,12,

	button,260,100,180,100,-1,5,-highlight,5
	button,260,100,180,100,-1,23,0,5
	button,260,100,180,100,-1,23,1,5
	button,260,100,180,100,-1,23,2,5
	button,260,100,180,100,-1,23,3,5
	button,260,100,180,100,-1,11,1,5


//=================================
// Battery - Specifics
//=================================

	if,var,var17,,=,0

		jumpregion,4,2
		storevar,var17=1

		else

		jumpregion,4,1
		storevar,var17=0

	endif

// Battery ========================

region,4,1,-1

	image,185,105,meters_background.png,t
	battery,bar,185,105,52,13,gradient_batterymain_gradient.png
	image,183,105,meters.png,t

	imagebutton,185,105,Metersbutton.png,tr,-1,0,%apps-2-2-highlight

	changefont,tahoma,12

	if,batterystatusunknown

		image,145,95,battery_unknown.png,t
		text,211,92,Battery: ?,c

		else

		if,charging

			image,145,95,battery_charging.png,t
			text,211,92,Charging.....,c

			else

				if,externalpower,=,true

				image,145,95,battery_charged.png,t
				text,211,92,Net,c

				else

				image,145,95,battery.png,t
				battery,remaining,211,92,Battery: ,%,c

				endif
		endif
	endif

endregion,4,1

//-- Specifics ============================

region,4,2,-1

	memory,totalused,211,92,Used: ,mb,c,%.1f
	image,185,105,meters_background.png,t
	memory,barused,185,105,52,13,gradient_Specialmain gradient.png
	image,183,105,meters.png,t

	imagebutton,185,105,Metersbutton.png,tr,-1,0,%apps-2-4-highlight

	calcvar,var17,programmemoryusedpercent

	if,var,var17,1,><,50

		image,145,95,Special_leer.png,t

		else

			if,var,var17,51,><,80

				image,145,95,Special_voll.png,t

				else

				image,145,95,Special_hot.png,t

			endif
	endif

	changefont,tahoma,14,

endregion,4,2

//=======================================
// Battery Program
//=======================================

	image,183,120,neon_shadow.png,
	imagebutton,183,120,neon.png,tr,-1,0,%apps-2-6-highlight

endregion,2,0

//=================================================
// 	Begin Agenda Area on Main Page
//
// 	REGION 5 - PAGE 0
//	Container for Agenda Area
//	Subregions:
//	Vars used: 5
//	Dimensions:  447 x 250
//=================================================

region,5,0,15
defregion,5,0,176,250,40,

//=======================================
// Text For Agenda
//=======================================
	
	changefont,tahoma,16,b

	image,4,139,headline.png
	text,5,139,Agenda/Tasks,l

	options,calendarfilter,1
	options,calendarfilter,2
	options,taskfilter,1
	options,taskfilter2

	options,dateformat,3,15,18,%changefont,tahoma,13,%%line,203,13,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'Today', dd, MMMM  yyyy
	options,tomorrow-text,'Tomorrow', dd, MMMM  yyyy

	options,apptformat,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%image,10,2,small_arrow_right.png,t%%tab,20%%starttime,HH:mmt%%tab,70%%//bold%%subject%%regularfont%

	options,apptallday,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%textcolor,0_128_0%%image,10,2,small_arrow_right.png,t%%tab,20%All Day%tab,70%%//bold%%subject%%regularfont%%textcolor,0_0_0%

	options,taskformat,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%checkbox,10,0,12,12,dot.png,dot1.png,t%%tab,20%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,13,%

	options,taskoverdue,0,11,13,%textcolor,255_0_0%%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%checkbox,10,0,12,12,dot.png,dot1.png,t%%tab,20%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,13,%%resettextcolor%

	options,taskcomplete,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,s%%checkbox,10,0,12,12,dot.png,dot1.png,tr%%tab,20%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,13,%

	options,blanktext,-1,11,13,

	outlook,4,155,230,60,0,0,228,,,5
	changefont,tahoma,14,

endregion,5,0

//============= End Main Page Agenda Area =============\\

//=================================================
// 	Begin News Ticker Area on Main Page
//
// 	REGION 6 - PAGE 0
//	Container for News Ticker
//	Subregions: 3-4, 6
//	Vars used:
//	Dimensions:  447 x 260
//=================================================

region,6,0,10
defregion,6,0,216,260,63,

//=======================================
// Text For News Ticker (Header is First)
//=======================================

	changefont,tahoma,16,b

	image,4,214,headline.png
	text,5,214,News Ticker,l


	changefont,tahoma,13,


if,refresh
color,font,125_125_125
else
color,font,0_0_0
endif

if,var,var15,,=,0

jumpregion,4,3
storevar,var15=1

else

if,var,var15,,=,1

jumpregion,4,4
storevar,var15=2

else

if,var,var15,,=,2

jumpregion,4,5
storevar,var15=3

else

if,var,var15,,=,3

jumpregion,4,6
storevar,var15=0

endif
endif
endif
endif


//RSS NEWS TICKER============================

region,4,3,-1

	load,rss,1

	RSS,title,4,229,240,12,1,,,l
	RSS,title,4,240,240,12,2,,,l
	RSS,title,4,251,240,12,3,,,l
	RSS,title,4,262,240,12,4,,,l
	RSS,title,4,273,240,12,5,,,l

endregion,4,3

//RSS NEWS TICKER============================

region,4,4,-1

	load,rss,2

	RSS,title,4,229,240,12,1,,,l
	RSS,title,4,240,240,12,2,,,l
	RSS,title,4,251,240,12,3,,,l
	RSS,title,4,262,240,12,4,,,l
	RSS,title,4,273,240,12,5,,,l

endregion,4,4

//RSS NEWS TICKER============================

region,4,5,-1

	load,rss,1

	RSS,title,4,229,240,12,1,,,l
	RSS,title,4,240,240,12,2,,,l
	RSS,title,4,251,240,12,3,,,l
	RSS,title,4,262,240,12,4,,,l
	RSS,title,4,273,240,12,5,,,l

endregion,4,5

//RSS NEWS TICKER============================

region,4,6,-1

	load,rss,2

	RSS,title,4,229,240,12,6,,,l
	RSS,title,4,240,240,12,7,,,l
	RSS,title,4,251,240,12,8,,,l
	RSS,title,4,262,240,12,9,,,l
	RSS,title,4,273,240,12,10,,,l

endregion,4,6

//RSS NEWS TICKER============================

region,4,7,-1

	load,rss,2

	RSS,title,4,229,240,12,6,,,l
	RSS,title,4,240,240,12,7,,,l
	RSS,title,4,251,240,12,8,,,l
	RSS,title,4,262,240,12,9,,,l
	RSS,title,4,273,240,12,10,,,l

endregion,4,7

//RSS NEWS TICKER============================

region,4,8,-1

	load,rss,2

	RSS,title,4,229,240,12,6,,,l
	RSS,title,4,240,240,12,7,,,l
	RSS,title,4,251,240,12,8,,,l
	RSS,title,4,262,240,12,9,,,l
	RSS,title,4,273,240,12,10,,,l

  endregion,4,8

endregion,6,0

//============= End News Ticker Region =============\\

//============= END Main View Page =============\\

//=================================================
// 	Begin Weather Section
//
// 	REGION 3 - PAGE 0
//	Container for Weather Sections
//	Subregions: 6,7
//	Vars used:
//	Dimensions:  447 x 226
//
//=================================================

region,3,0,60
defregion,3,0,85,447,226,1

clearregion,2
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,9
clearregion,10
clearregion,12
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,2
deactivatebuttons,5
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,10
deactivatebuttons,11
deactivatebuttons,12
deactivatebuttons,17
deactivatebuttons,18
deactivatebuttons,19

activatebuttons,3
activatebuttons,1
activatebuttons,15
activatebuttons,16

updateregions,1
updateregions,15
updateregions,16

	color,font,0_0_0

	if,var,var9,,>,%var29%
		storevar,var9=1
		else
	endif

	load,city,%var9%

//===================================
// Header Section
//===================================

	image,125,84,headline_title_vertical.png,t
	changefont,Tahoma,18,b

	text,220,83,Weather - ,r
	text,220,83,[name],l

	changefont,Tahoma,13,

	image,125,99,headline_title_verticalshade.png,t

	//text,220,99,Current,c

	if,refresh

		color,font,125_125_125
		jumpregion,7,999
		jumpregion,8,999

		else

		color,font,0_0_0

	endif

//===================================
// Sun Phases
//===================================

//image,3,172,sun.png,t
//suntime,%var9%,sunrise,official,38,170,HH:mm,Sunrise:  ,,l
//suntime,%var9%,sunset,official,38,180,HH:mm,Sunset:   ,,l
//suntime,%var9%,daylength,official,38,190,HH:mm,Daylight: ,,l

//===================================
// Moon Phases
//===================================

//calcvar,var14,moonphase,0
//imagemeter,415,175,%var14%,phase.png,tr,0,7
//moontime,%var9%,rise,0,350,170,HH:mm,Rise:    ,,l
//moontime,%var9%,set,0,350,180,HH:mm,Set:     ,,l
//moontime,%var9%,visible,0,350,190,,Phase:    ,%,l

//===================================
// Actual Weather Data
//===================================

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240

		changefont,tahoma,16
		todayicon,40,120,,t
		today,sky,110,120,,,l
		text,110,135,Temp:,l
		today,temp,195,135,,F,l
		text,110,150,Real Temp:,l
		today,realtemp,195,150,,F,l
		text,110,165,Barometer:,l
		today,barometer,195,165,,kpa,l
		today,humidity,260,120,Relative Humidity: ,%,l
		today,uv,260,135,UV-Index: ,,l
		today,winddir,260,150,Wind Dir: , ,l
		today,windspeed,260,165,Wind Speed: ,mph,l
		changefont,tahoma,12
		today,date,125,189,ONLINE Weather Updated , ,l

		else

		changefont,tahoma,26
		text,230,150,No weather data available,c
		

	endif

//===================================
// Weather Forcast   4 Days
//===================================

		changefont,tahoma,13

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240

		imagebutton,16,205,Weather_Button_Blue.png,tr,7,4,0,3
		button,16,205,95,13,-1,6,var1=1
		forecasticon,1,13,220,,t
		forecast,date_dddd  MMM dd,1,64,205,,,c
		forecast,high,1,111,220,H: ,F,r
		forecast,low,1,111,231,L: ,F,r
		forecast,precipitation,1,111,270,PoP: ,%,r

		imagebutton,121,205,Weather_Button_Blue.png,tr,7,4,0,3
		button,121,205,95,13,-1,6,var1=2
		forecasticon,2,118,220,,t
		forecast,date_dddd  MMM dd,2,171,205,,,c
		forecast,high,2,215,220,H: ,F,r
		forecast,low,2,215,231,L: ,F,r
		forecast,precipitation,2,215,270,PoP: ,%,r

		imagebutton,226,205,Weather_Button_Blue.png,tr,7,4,0,3
		button,226,205,95,13,-1,6,var1=3
		forecasticon,3,223,220,,t
		forecast,date_dddd  MMM dd,3,276,205,,,c
		forecast,high,3,319,220,H: ,F,r
		forecast,low,3,319,231,L: ,F,r
		forecast,precipitation,3,319,270,PoP: ,%,r

		imagebutton,331,205,Weather_Button_Blue.png,tr,7,4,0,3
		button,311,205,95,13,-1,6,var1=4
		forecasticon,4,328,220,,t
		forecast,date_dddd  MMM dd,4,381,205,,,c
		forecast,high,4,423,220,H: ,F,r
		forecast,low,4,423,231,L: ,F,r
		forecast,precipitation,4,423,270,PoP: ,%,r

		else

		calcvar,var21,firstvalidforecastday

		if,var,var21,,<,6

			imagebutton,16,205,Weather_Button_Blue.png,tr,7,4,0,3
			button,16,205,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,13,220,,t
			forecast,date_dddd  MMM dd,%var21%,64,205,,,c
			forecast,high,%var21%,111,220,H: ,F,r
			forecast,low,%var21%,111,231,L: ,F,r
			forecast,precipitation,%var21%,111,270,PoP: ,%,r

			addvar,var21,1

			else

			image,13,220,none.png,t

		endif

		if,var,var21,,<,6

			imagebutton,121,205,Weather_Button_Blue.png,tr,7,4,0,3
			button,121,205,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,118,220,,t
			forecast,date_dddd  MMM dd,%var21%,171,205,,,c
			forecast,high,%var21%,215,220,H: ,F,r
			forecast,low,%var21%,215,231,L: ,F,r
			forecast,precipitation,%var21%,215,270,PoP: ,%,r

			addvar,var21,1

			else

			image,118,220,none.png,t

		endif

		if,var,var21,,<,6

			imagebutton,226,205,Weather_Button_Blue.png,tr,7,4,0,3
			button,226,205,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,223,220,,t
			forecast,date_dddd  MMM dd,%var21%,276,205,,,c
			forecast,high,%var21%,319,220,H: ,F,r
			forecast,low,%var21%,319,231L: ,F,r
			forecast,precipitation,%var21%,319,270,PoP: ,%,r

			addvar,var21,1

			else

			image,223,220,none.png,t

		endif

		if,var,var21,,<,6

			imagebutton,331,205,Weather_Button_Blue.png,tr,7,4,0,3
			button,311,205,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,328,220,,t
			forecast,date_dddd  MMM dd,%var21%,381,205,,,c
			forecast,high,%var21%,423,220,H: ,F,r
			forecast,low,%var21%,423,231,L: ,F,r
			forecast,precipitation,%var21%,423,270,PoP: ,%,r

			addvar,var21,1

			else

			image,328,220,none.png,t

		endif
	endif

//===================================
// Centered About "Menu"(Located on right side of "current" weather)
//===================================

	imagebutton,325,99,center_about.png,tr,8,4,0,3
	text,330,99,Menu,l

//============================================
// Actual Updated Time  (Located on left side of "current" weather)
//============================================

	image,45,99,Weather_update_background.png,

	if,var,var20,,<,240

		text,50,99,Updated:,l
		text,100,99,[updatetime],l, hh:mm tt

		else

		text,50,99,Update Time:,l
		color,font,255_0_0
		text,112,99,[updatetime],l,HH:mm
		color,font,0_0_0

	endif

	if,refresh

		image,45,99,Updating_Weather.png,

		else

	endif

	button,45,99,83,13,8,4,999
	button,45,99,83,13,7,4,999
	button,45,99,83,13,-1,7,,3

	color,font,0_0_0

//===================================
// End Time
//===================================

	//image,205,111,Weather_done.png,
	//time,220,113,7,4,c

endregion,3,0

//=================================================
//
// 	REGION 7 - PAGE 0
//	Container for Detailed Weather
//	Subregions: 4
//	Vars used:
//	Dimensions:  217 x 173
//=================================================

region,7,0,10

	cleararea,120,110,217,173

	clearregion,8

	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	load,city,%var9%

	image,120,110,CenterPopup.png

//===================================
// Popup Closebox Button
//===================================

	imagebutton,315,112,Popup_closebox.png,t,7,4,999,3

//===================================
// Popup Forecast Header
//===================================

	changefont,Tahoma,13,b
	text,220,113,Forecast - ,r
	text,220,113,[name],l
	changefont,Tahoma,12,

	forecast,date_dddd MMMM dd. yyyy,%var1%,220,128,,,c

//===================================
// Weather Details
//===================================

	forecasticon,%var1%,120,150,,t
	text,185,150,Forecast:,l
	forecast,text,%var1%,205,160,,,l

	text,185,175,Maximum Temperature:,l
	text,185,185,Minimum Temperature:,l
	text,185,195,Possibility of Precipitation:,l

	color,font,255_0_0
	forecast,high,%var1%,325,175,, F,r
	color,font,0_0_255
	forecast,low,%var1%,325,185,, F,r
	color,font,0_0_0
	forecast,precipitation,%var1%,325,195,, %,r

	nightforecasticon,%var1%,120,210,,t
	text,185,220,Evening Forecast:,l
	forecast,nighttext,%var1%,205,230,,,l

endregion,7,0

//=================================================
//
// 	REGION 7 - PAGE 1
//	Container for Moon Phases
//	Subregions:
//	Vars used:
//	Dimensions:  328 x 104
//
//=================================================

region,7,1,-1

cleararea,65,112,328,104

deactivatebuttons,3
deactivatebuttons,8

activatebuttons,7

clearregion,8

	image,55,112,MoonPhasePopup.png
	changefont,Tahoma,13,b
	text,225,113,Moon Phase Calendar,c
	changefont,Tahoma,12,

	imagebutton,370,114,Popup_closebox.png,t,7,4,999,3
	button,380,114,15,15,-1,6,var7=1

	load,city,%var0%
	changefont,tahoma,10,b

//=================================================
                time,80,130,-1,5,l,"dd.MM.",,%var7%
                calcvar,var14,moonphase,%var7%
                imagemeter,60,136,%var14%,phase.png,tr,0,7
                moontime,%var0%,visible,%var7%,92,200,,, %,c
//=================================================
addvar,var7,1
                time,145,130,-1,5,l,"dd.MM.",,%var7%
                calcvar,var14,moonphase,%var7%
                imagemeter,125,136,%var14%,phase.png,tr,0,7
                moontime,%var0%,visible,%var7%,157,200,,, %,c
//=================================================
addvar,var7,1
                time,210,130,-1,5,l,"dd.MM.",,%var7%
                calcvar,var14,moonphase,%var7%
                imagemeter,190,136,%var14%,phase.png,tr,0,7
                moontime,%var0%,visible,%var7%,222,200,,, %,c
//=================================================
addvar,var7,1
                time,275,130,-1,5,l,"dd.MM.",,%var7%
                calcvar,var14,moonphase,%var7%
                imagemeter,255,136,%var14%,phase.png,tr,0,7
                moontime,%var0%,visible,%var7%,287,200,,, %,c
//=================================================
addvar,var7,1
                time,340,130,-1,5,l,"dd.MM.",,%var7%
                calcvar,var14,moonphase,%var7%
                imagemeter,320,136,%var14%,phase.png,tr,0,7
                moontime,%var0%,visible,%var7%,352,200,,, %,c
//=================================================

                imagebutton,373,135,Arrow_right.png,t,0,13,var7_1
		button,373,135,15,15,7,4,1

endregion,7,1

//=================================================
//
// 	REGION 7 - PAGE 2
//	Container for Astrological Phases
//	Subregions: 1 of 4
//	Vars used:
//	Dimensions:
//
//=================================================


region,7,2,10

deactivatebuttons,3
deactivatebuttons,8

activatebuttons,7

clearregion,8

cleararea,118,112,191,84

image,118,112,ZodiacPhasePopup.png
changefont,Tahoma,13,b

text,225,114,Astrological Cal 1/4,c
changefont,Tahoma,12,

imagebutton,318,114,Popup_closebox.png,t,7,4,999,3
changefont,tahoma,11,

text,160,138,ab 22.12.,c
image,130,154,Zodiac_Capricorn.gif,c
text,160,212,Capricorn,c

text,230,138,ab 21.01.,c
image,201,154,Zodiac_Aquarius.gif,c
text,230,212,Aquarius,c

text,293,138,ab 20.02.,c
image,265,154,Zodiac_Pisces.gif,c
text,293,212,Pisces,c

changefont,tahoma,12,

imagebutton,123,138,Arrow_left.png,t,7,4,5,3
imagebutton,318,138,Arrow_right.png,t,7,4,3,3

endregion,7,2

//=================================================
//
// 	REGION 7 - PAGE 3
//	Container for Astrological Phases
//	Subregions: 2 of 4
//	Vars used:
//	Dimensions:  480 x 221
//
//=================================================

region,7,3,10

deactivatebuttons,3
deactivatebuttons,8

activatebuttons,7

clearregion,8

cleararea,118,112,191,84

image,118,112,ZodiacPhasePopup.png
changefont,Tahoma,13,b

text,225,114,Astrological Cal 2/4,c
changefont,Tahoma,12,

imagebutton,318,114,Popup_closebox.png,t,7,4,999,3
changefont,tahoma,11,

text,160,138,ab 22.12.,c
image,130,154,Zodiac_Aries.gif,c
text,160,212,Aries,c

text,230,138,ab 21.01.,c
image,201,154,Zodiac_Taurus.gif,c
text,230,212,Taurus,c

text,293,138,ab 20.02.,c
image,265,154,Zodiac_Gemini.gif,c
text,293,212,Gemini,c

changefont,tahoma,12,

imagebutton,123,138,Arrow_left.png,t,7,4,2,3
imagebutton,318,138,Arrow_right.png,t,7,4,4,3

endregion,7,3

//=================================================
//
// 	REGION 7 - PAGE 4
//	Container for Astrological Phases
//	Subregions: 3 of 4
//	Vars used:
//	Dimensions:
//
//=================================================

region,7,4,10

deactivatebuttons,3
deactivatebuttons,8

activatebuttons,7

clearregion,8

cleararea,118,112,191,84

image,118,112,ZodiacPhasePopup.png
changefont,Tahoma,13,b

text,225,114,Astrological Cal 3/4,c
changefont,Tahoma,12,

imagebutton,318,114,Popup_closebox.png,t,7,4,999,3
changefont,tahoma,11,

text,160,138,ab 22.12.,c
image,130,154,Zodiac_Cancer.gif,c
text,160,212,Cancer,c

text,230,138,ab 21.01.,c
image,201,154,Zodiac_Leo.gif,c
text,230,212,Leo,c

text,293,138,ab 20.02.,c
image,265,154,Zodiac_Virgo.gif,c
text,293,212,Virgo,c

changefont,tahoma,12,

imagebutton,123,138,Arrow_left.png,t,7,4,3,3
imagebutton,318,138,Arrow_right.png,t,7,4,5,3

endregion,7,4

//=================================================
//
// 	REGION 7 - PAGE 5
//	Container for Astrological Phases
//	Subregions: 4 of 4
//	Vars used:
//	Dimensions:
//
//=================================================

region,7,5,10

deactivatebuttons,3
deactivatebuttons,8
activatebuttons,7

clearregion,8

cleararea,118,112,191,84

image,118,112,ZodiacPhasePopup.png
changefont,Tahoma,13,b

text,225,114,Astrological Cal 4/4,c
changefont,Tahoma,12,

imagebutton,318,114,Popup_closebox.png,t,7,4,999,3
changefont,tahoma,11,

text,160,138,ab 22.12.,c
image,130,154,Zodiac_Libra.gif,c
text,160,212,Libra,c

text,230,138,ab 21.01.,c
image,201,154,Zodiac_Scorpio.gif,c
text,230,212,Scorpio,c

text,293,138,ab 20.02.,c
image,265,154,Zodiac_Sagittarius.gif,c
text,293,212,Sagittarius,c

changefont,tahoma,12,

imagebutton,123,138,Arrow_left.png,t,7,4,4,3
imagebutton,318,138,Arrow_right.png,t,7,4,2,3

endregion,7,5

//=================================================
//
// 	REGION 8 - PAGE 0
//	Container for Center About PopUp
//	Subregions: 2 of 4
//	Vars used:
//	Dimensions:
//
//=================================================

region,8,0,10

//cleararea,286,110,124,78

clearregion,7

deactivatebuttons,3
deactivatebuttons,7

activatebuttons,8

image,285,112,center_about_popup.png

changefont,Tahoma,12,b
text,291,114,Astrological Cal,l
imagebutton,287,112,center_about_popup_button.png,tr,7,4,2,3
button,287,112,50,12,8,4,999

text,291,131,Moon Phase Cal,l
imagebutton,287,129,center_about_popup_button.png,tr,7,4,1,3
button,287,131,50,12,8,4,999

imagebutton,391,132,scrollup.png,t,8,13,var13_-2
imagebutton,391,162,scrolldown.png,t,8,13,var13_2

	if,var,var13,,<,1
		storevar,var13=1

		else
	endif

	if,var,var13,,>,%var29%
		storevar,var13=1

		else
	endif

	if,var,var13,,<,1
		storevar,var13=%var29%

		else
	endif

text,393,114,%var29%,l
text,393,147,%var13%,l

load,city,%var13%
image,291,149,small_arrow_right.png,t
text,298,146,[name],l
imagebutton,287,146,center_about_popup_button.png,tr,3,4,0,3
button,287,147,100,15,-1,6,var9=%var13%
button,287,147,100,15,8,4,999

addvar,var13,1

load,city,%var13%
image,291,162,small_arrow_right.png,t
text,298,161,[name],l
imagebutton,287,161,center_about_popup_button.png,tr,3,4,0,3
button,287,162,100,15,-1,6,var9=%var13%
button,287,162,100,15,8,4,999

addvar,var13,-1

color,font,255_0_0
text,320,184,Cancel,l
imagebutton,287,182,center_about_popup_button_cancel.png,tr,8,4,999,3
color,font,0_0_0

changefont,Tahoma,12,

endregion,8,0

//============= END Weather Page =============\\

//=================================================
// 	Begin Calendar (Agenda) Page
//
// 	REGION 9 - PAGE 0
//	Container for Agenda Area
//	Subregions:
//	Vars used:
//	Dimensions:  447 x 221
//=================================================

region,9,0,30
defregion,9,0,85,447,226,1
cleararea,0,85,447,226

clearregion,2
clearregion,3
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,10
clearregion,12
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,2
deactivatebuttons,3
deactivatebuttons,5
deactivatebuttons,4
deactivatebuttons,6
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,10
deactivatebuttons,11
deactivatebuttons,12
deactivatebuttons,17
deactivatebuttons,18
deactivatebuttons,19

activatebuttons,9
activatebuttons,15
activatebuttons,16

updateregions,9
updateregions,15
updateregions,16

	initvar,var16,8

//===========================================
// Header Section
//===========================================

	image,5,87,headline_title_vertical.png,t
	image,235,87,headline_title_vertical.png,t

	changefont,tahoma,18,b
	text,335,87,Calendar,c

	changefont,tahoma,12,

//===========================================
// Calendar - Current Month
//===========================================

	image,235,105,Calender_header_poom.png
	calendarheader,235,120,13

	calendar,0,0,235,133,13,10,l

	button,235,133,97,60,-1,5,0-highlight,9
	button,235,133,97,60,-1,23,0,9
	button,235,133,97,60,-1,23,1,9
	button,235,133,97,60,-1,23,2,9
	button,235,133,97,60,-1,23,3,9
	button,235,133,97,60,-1,11,0,9

	changefont,tahoma,13,

	text,278,105,[caldate],0,c,"MMMM, yy"

	changefont,tahoma,12,

	imagebutton,235,195,CalenderMove_left.png,t,-1,9,0,9
	button,235,195,70,12,-1,9,1,9

//===========================================
// Calendar - Next Month
//===========================================

	image,345,105,Calender_header_poom.png

	calendarheader,345,120,13
	calendar,1,1,345,133,13,10,l

	button,345,133,97,60,-1,5,1-highlight,9
	button,345,133,97,60,-1,23,0,9
	button,345,133,97,60,-1,23,1,9
	button,345,133,97,60,-1,23,2,9
	button,345,133,97,60,-1,23,3,9
	button,345,133,97,60,-1,11,1,9

	text,388,105,[caldate],1,c,"MMMM, yy"

	imagebutton,368,195,CalenderMove_right.png,t,-1,8,1,9
	button,368,195,70,12,-1,8,0,9

//===========================================
// ReSet Calendar Month
//===========================================

	imagebutton,305,195,Calender_reset.png,t,-1,10,0,9
	button,305,195,62,12,-1,10,1,9
	button,305,195,62,12,-1,22,0,9
	button,305,195,62,12,-1,23,0,9

	time,335,195,-1,5,c,dd.MM. ,HH:mm,

//===========================================
// Agenda Listing
//===========================================

if,var,var16,,=,1   				// "Medical"
	image,235,210,butt_med_sel.png

else
	image,235,210,butt_med.png

endif

if,var,var16,,=,2				// "Birthday"
	image,265,210,butt_birth_sel.png

else
	image,265,210,butt_birth.png

endif

if,var,var16,,=,3				// "Anniversary"
	image,295,210,butt_aniv_sel.png

else
	image,295,210,butt_aniv.png

endif

if,var,var16,,=,5				// "Business Agenda"
	image,325,210,butt_buscal_sel.png

else
	image,325,210,butt_buscal.png

endif

if,var,var16,,=,6				// "Business Tasks"
	image,355,210,butt_bustsk_sel.png

else
	image,355,210,butt_bustsk.png

endif

if,var,var16,,=,8				// "Personal Agenda"
	image,385,210,butt_percal_sel.png

else
	image,385,210,butt_percal.png

endif

if,var,var16,,=,7				// "Personal Tasks"
	image,415,210,butt_pertsk_sel.png

else
	image,415,210,butt_pertsk.png

endif

button,235,210,25,25,-1,6,var16=1-highlight,9
button,265,210,25,25,-1,6,var16=2-highlight,9
button,295,210,25,25,-1,6,var16=3-highlight,9
button,325,210,25,25,-1,6,var16=5-highlight,9
button,355,210,25,25,-1,6,var16=6-highlight,9
button,385,210,25,25,-1,6,var16=8-highlight,9
button,415,210,25,25,-1,6,var16=7-highlight,9

button,235,210,25,25,-1,23,0
button,265,210,25,25,-1,23,0
button,295,210,25,25,-1,23,0
button,325,210,25,25,-1,23,0
button,355,210,25,25,-1,23,0
button,385,210,25,25,-1,23,0
button,415,210,25,25,-1,23,0

//===========================================
// Agenda Filters
//===========================================

options,dateformat,1,15,15,%changefont,tahoma,13,%%line,202,12,-1_6_-1%%bold%%date,l%%regularfont%
options,today-text,'Today', dd, MMMM  yyyy
options,tomorrow-text,'Tomorrow', dd, MMMM  yyyy

options,apptformat,0,11,11,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%image,10,2,small_arrow_right.png,t%%tab,20%%starttime,HH:mmt%%tab,70%%//bold%%subject%%regularfont%
options,apptallday,0,11,11,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,13,%%textcolor,0_128_0%%image,10,2,small_arrow_right.png,t%%tab,20%All Day%tab,70%%//bold%%subject%%regularfont%%textcolor,0_0_0%
options,blanktext,-1,11,11,


imagebutton,5,87,refresh.png,,-1,22,,-1
button,5,87,12,12,-1,23,1
button,5,87,12,12,-1,23,2
button,5,87,12,12,-1,23,0
button,5,87,12,12,-1,23,3

// For the last line in each section 
// below listings area defined as: 	"0=Display both Appointments & Tasks"....... 
//					"1=Display Appointments only"....... 
//					"2=Display Tasks only" 


if,var,var16,,=,1

	cleararea,0,100,210,260
	changefont,tahoma,18,b
	text,107,87,Medical Appointments,c
	options,calendarfilter,2
	changefont,tahoma,11,
	outlook,5,125,205,173,1,0,208,,,9

	else

	if,var,var16,,=,2

		cleararea,0,100,210,260
		changefont,tahoma,18,b
		text,107,87,Birthdays,c
		options,calendarfilter,3
		changefont,tahoma,11,
		outlook,5,105,205,183,1,0,228,,,9

		else

		if,var,var16,,=,3

			cleararea,0,100,210,260
			changefont,tahoma,18,b
			text,107,87,Anniversaries,c
			options,calendarfilter,4
			changefont,tahoma,11,
			outlook,5,105,205,183,1,0,228,,,9

			else

			if,var,var16,,=,6

				cleararea,0,100,210,260
				changefont,tahoma,18,b
				text,107,87,Business Tasks,c,
				options,taskfilter,4
				changefont,tahoma,11,
				outlook,5,105,205,183,2,0,228,,,9

				else

				if,var,var16,,=,5

					cleararea,0,100,210,260
					changefont,tahoma,18,b
					text,107,87,Business Agenda,c
					options,calendarfilter,5
					changefont,tahoma,11,
					outlook,5,105,205,183,1,0,228,,,9

					else

					if,var,var16,,=,8

						cleararea,0,100,210,260
						changefont,tahoma,18,b
						text,107,87,Personal Agenda,c
						options,calendarfilter,6
						changefont,tahoma,11,
						outlook,5,105,205,183,1,0,228,,,9

						else

						if,var,var16,,=,7

							cleararea,0,100,210,260
							changefont,tahoma,18,b
							text,107,87,Personal Tasks,c
							options,taskfilter,3
							changefont,tahoma,11,
							outlook,5,105,205,183,2,0,228,,,9

							else

						endif
					endif
				endif
			endif
		endif
	endif
endif

endregion,9,0

//============= END Calendar Page =============\\

//=================================================
// 	Begin Radar Area
//
// 	REGION 10 - PAGE 0
//	Container for Radar Images
//	Subregions:
//	Vars used:
//	Dimensions:  446 x 226
//=================================================

region,10,0,30
defregion,10,0,85,447,226,1
cleararea,0,85,446,226

clearregion,2
clearregion,3
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,9
clearregion,12
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,2
deactivatebuttons,3
deactivatebuttons,5
deactivatebuttons,4
deactivatebuttons,6
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,11
deactivatebuttons,12
deactivatebuttons,17
deactivatebuttons,18
deactivatebuttons,19

activatebuttons,10
activatebuttons,15
activatebuttons,16

updateregions,10
updateregions,15
updateregions,16

//===========================================
// Header Section
//===========================================

	image,5,87,headline_title_vertical.png,t
	imagebutton,5,87,calendar_img.png,t,-1,6,var11=1,10
		button,5,87,15,15,-1,23,0,10
		button,5,87,15,15,-1,23,1,10
	image,235,87,headline_title_vertical.png,t
	imagebutton,195,87,tasks.png,t,-1,6,var11=2,10
		button,195,87,15,15,-1,23,0,10
		button,195,87,15,15,-1,23,1,10

	changefont,tahoma,18,b
	text,335,87,Calendar,c
	changefont,tahoma,12,

//===========================================
// Calendar - Current Month
//===========================================

	image,235,105,Calender_header_poom.png

	calendarheader,235,120,13
	calendar,0,0,235,133,13,10,l

	button,235,133,97,60,-1,5,0-highlight,10
	button,235,133,97,60,-1,23,0,10
	button,235,133,97,60,-1,23,1,10
	button,235,133,97,60,-1,23,2,10
	button,235,133,97,60,-1,23,3,10
	button,235,133,97,60,-1,11,0,10

	text,278,105,[caldate],0,c,"MMMM, yy"

	imagebutton,235,195,CalenderMove_left.png,t,-1,9,0,10
	button,235,195,70,12,-1,9,1,10

//===========================================
// Calendar - Next Month
//===========================================

	image,345,105,Calender_header_poom.png

	calendarheader,345,120,13
	calendar,1,1,345,133,13,10,l

	button,345,133,97,60,-1,5,1-highlight,10
	button,345,133,97,60,-1,23,0,10
	button,345,133,97,60,-1,23,1,10
	button,345,133,97,60,-1,23,2,10
	button,345,133,97,60,-1,23,3,10
	button,345,133,97,60,-1,11,1,10

	text,388,105,[caldate],1,c,"MMMM, yy"

	imagebutton,368,195,CalenderMove_right.png,t,-1,8,1,10
	button,368,195,70,12,-1,8,0,10

//===========================================
// ReSet Calendar Month
//===========================================

	imagebutton,305,195,Calender_reset.png,t,-1,10,0,10
	button,305,195,62,12,-1,10,1,10
	button,305,195,62,12,-1,22,0,10
	button,305,195,62,12,-1,23,0,10

	time,335,195,-1,5,c,dd.MM. ,HH:mm,

//===========================================
// For Radar Images
//===========================================

	changefont,tahoma,20,b
	text,45,165,FOR FUTURE,l 
	text,35,185,RADAR IMAGES,l
	changefont,tahoma,12,
	text,65,215,Coming SOON!,l

endregion,10,0

//============= END Agenda Page =============\\

//=================================================
// 	Begin World Time - Analog Clocks
//
// 	REGION 11 - PAGE 0
//	Container for World Clocks
//	Subregions: 1
//	Vars used:
//	Dimensions:  447 x 75
//=================================================

region,11,0,60
defregion,11,0,85,447,226
cleararea,0,85,447,226

clearregion,2
clearregion,3
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,9
clearregion,10
clearregion,12
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,2
deactivatebuttons,3
deactivatebuttons,4
deactivatebuttons,5
deactivatebuttons,6
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,10
deactivatebuttons,12
deactivatebuttons,15
deactivatebuttons,16
deactivatebuttons,17
deactivatebuttons,18

activatebuttons,11
activatebuttons,15
activatebuttons,16

updateregions,11
updateregions,15
updateregions,16

	image,125,83,headline_title_vertical.png,t
	changefont,Tahoma,18,b
	text,222,81,World Times,c

	changefont,Tahoma,13,b
	image,125,99,headline_title_verticalshade.png,t

	image,45,99,Time-LocalBackground.png
	text,47,99,Home:,l

	changefont,Tahoma,13,
	time,90,99,-1,5,l,"MMMM dd, yyyy", - hh:mm tt,
	
	//image,205,111,Time-Center_ActualTime.png,
	//time,220,113,-1,4,c
	imagebutton,205,111,Time-Center_LoadTime.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,325,99,Time-fadetodark_right_loading_button.png,,11,4,1,1
	text,340,99,Digital Clocks,l


	// City 1 ====================================
	image,40,130,R_DateJust.png
	time,123,178,-1,5,cs,"d",
	time,95,185,1,analog,hand_hour.png,hand_minute.png
	changefont,Tahoma,13
	image,45,244,Calender_header_poom.png
	text,45,244,[name],l
	time,136,244,1,5,r,MMM-dd,,

	// City 2 ====================================
	image,192,130,R_DateJust2.png
	time,218,154,2,analog,hourhand.png,minutehand.png
	changefont,Tahoma,13
	image,175,185,Calender_header_poom.png
	text,175,185,[name],l
	time,266,185,2,5,r,MMM-dd,,

	// City 3 ====================================
	image,350,130,R_DateJust2.png
	time,376,154,3,analog,hourhand.png,minutehand.png
	changefont,Tahoma,13
	image,330,185,Calender_header_poom.png
	text,330,185,[name],l
	time,421,185,3,5,r,MMM-dd,,

	// City 4 ====================================
	//image,40,210,R_DateJust2.png
	//time,66,234,4,analog,hand_hour.png,hand_minute.png
	//changefont,Tahoma,13
	//image,20,265,Calender_header_poom.png
	//text,20,265,[name],l
	//time,111,265,4,5,r,MMM-dd,,

	// City 5 ====================================
	image,192,210,R_DateJust2.png
	time,218,234,5,analog,hourhand.png,minutehand.png
	changefont,Tahoma,13
	image,175,265,Calender_header_poom.png
	text,175,265,[name],l
	time,266,265,5,5,r,MMM-dd,,

	// City 6 ====================================
	image,350,210,R_DateJust2.png
	time,376,234,6,analog,hourhand.png,minutehand.png
	changefont,Tahoma,13
	image,330,265,Calender_header_poom.png
	text,330,265,[name],l
	time,421,265,6,5,r,MMM-dd,,

endregion,11,0

	//=================================================
	// REGION 11 - PAGE 1
	//
	// World Times - Digital Clocks
	//=================================================

region,11,1,60
defregion,11,1,85,447,226
cleararea,0,85,447,226

	image,125,83,headline_title_vertical.png,t
	changefont,Tahoma,18,b

	text,222,81,World Times,c

	changefont,Tahoma,13,

	image,125,99,headline_title_verticalshade.png,t

	changefont,Tahoma,13,b

	image,45,99,Time-LocalBackground.png
	text,47,99,Home:,l

	changefont,Tahoma,13,

	time,90,99,-1,5,l,"MMMM dd, yyyy", - hh:mm tt,

	//image,205,111,Time-Center_ActualTime.png,
	//time,220,113,-1,4,c
	imagebutton,205,111,Time-Center_LoadTime.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,325,99,Time-fadetodark_right_loading_button.png,,11,4,0,1
	text,340,99,Analog Clocks,l


	// City 1 ====================================
	image,32,140,Digital_Clock.png
	changefont,Tahoma,18
	time,66,149,1,4,c
	changefont,Tahoma,13
	image,20,185,Calender_header_poom.png
	text,20,185,[name],l
	time,111,185,1,5,r,MMM-dd,,

	// City 2 ====================================
	image,188,140,Digital_Clock.png
	changefont,Tahoma,18
	time,222,149,2,4,c
	changefont,Tahoma,13
	image,175,185,Calender_header_poom.png
	text,175,185,[name],l
	time,266,185,2,5,r,MMM-dd,,

	// City 3 ====================================
	image,342,140,Digital_Clock.png
	changefont,Tahoma,18
	time,376,149,3,4,c
	changefont,Tahoma,13
	image,330,185,Calender_header_poom.png
	text,330,185,[name],l
	time,421,185,3,5,r,MMM-dd,,

	// City 4 ====================================
	image,32,220,Digital_Clock.png
	changefont,Tahoma,18
	time,66,229,4,4,c
	changefont,Tahoma,13
	image,20,265,Calender_header_poom.png
	text,20,265,[name],l
	time,111,265,4,5,r,MMM-dd,,

	// City 5 ====================================
	image,188,220,Digital_Clock.png
	changefont,Tahoma,18
	time,222,229,5,4,c
	changefont,Tahoma,13
	image,175,265,Calender_header_poom.png
	text,175,265,[name],l
	time,266,265,5,5,r,MMM-dd,,

	// City 6 ====================================
	image,342,220,Digital_Clock.png
	changefont,Tahoma,18
	time,376,229,6,4,c
	changefont,Tahoma,13
	image,330,265,Calender_header_poom.png
	text,330,265,[name],l
	time,421,265,6,5,r,MMM-dd,,

endregion,11,1

//============= END World Time =============\\

//=================================================
// 	Begin RSS News Section
//
// 	REGION 12 - PAGE 0 (Regions 13,14)
//	Container for RSS Area
//	Subregions: 3
//	Vars used: 5
//	Dimensions:  447 x 226
//=================================================

region,12,0,10
defregion,12,0,85,447,226
cleararea,0,85,447,224

clearregion,2
clearregion,3
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,9
clearregion,10
clearregion,11
clearregion,17
clearregion,18
clearregion,19

deactivatebuttons,2
deactivatebuttons,3
deactivatebuttons,4
deactivatebuttons,5
deactivatebuttons,6
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,10
deactivatebuttons,11
deactivatebuttons,17
deactivatebuttons,18
deactivatebuttons,19

activatebuttons,12
activatebuttons,13

updateregions,12
updateregions,13
updateregions,14
updateregions,15
updateregions,16



	///////////////////////////////////////
	// Region 13,0 RSS - Heading
	///////////////////////////////////////

	region,13,0,-1

	// Buttons & Scrollbars =============================

		if,online
			imagebutton,79,268,linkonline.png,t,12,31,
			else
			imagebutton,79,268,linkoffline.png,t,12,30,
		endif

		initvar,var2,1
		imagebutton,100,269,refresh.png,t,-1,7,,12

		imagebutton,3,270,CalenderMove_left.png,t,12,13,var2_-1
		button,3,270,70,12,-1,6,var5=1
		button,3,270,70,12,-1,6,var6=113
		imagebutton,139,270,CalenderMove_right.png,t,12,13,var2_1
		button,139,270,70,12,-1,6,var5=1
		button,139,270,70,12,-1,6,var6=113
		
		image,198,112,scrollbar.png,t
		image,198,113,scrollbar.png,t

		imagebutton,199,100,scrollup.png,t,12,13,var5_-12
		button,199,100,11,12,-1,13,var6_-74
		imagebutton,199,257,scrolldown.png,t,12,13,var5_12
		button,199,257,11,12,-1,13,var6_74

		if,var,var5,,>,23
			storevar,var5=13
			storevar,var6=187	// Middle Position
		else
		endif
		if,var,var5,,<,1
			storevar,var5=1
			storevar,var6=113  	// Top Position
		else
		endif
                //	text,220,150,%var5%,c	// For troubleshooting only
		image,198,%var6%,scroll2.png,t

	// Heading =============================

		if,var,var2,,>,%var28%
			storevar,var2=1
			else
		endif

		if,var,var2,,<,1
			storevar,var2=%var28%
			else
		endif

		load,rss,%var2%
		image,5,87,headline_title_vertical.png,t
		text,108,87,%var2%,l
		text,113,87, / %var28%,l
		changefont,Tahoma,12,
		text,9,87,[name],l

	//========================================
	// Update Information
	//========================================

		calcvar,var20,weatherupdatetimediff
		if,var,var20,,<,240

			text,130,87,Updated:,l
			text,178,87,[updatetime],l,HH:mm

			else

			color,font,255_0_0
			text,130,87,Upd. ,l

			if,var,var20,240,><,600

				calcvar,var20,/,%var20%,60
				text,168,87,Hrs ago,l

				else

				if,var,var20,600,><,1440

					calcvar,var20,/,%var20%,60
					text,168,87,Hrs ago,l

					else

					if,var,var20,1440,><,14400

						calcvar,var20,/,%var20%,1440
						text,168,87,Days ago,l

						else

						if,var,var20,,>,14401

							calcvar,var20,/,%var20%,1440
							text,168,87,Days ago,l

							else
						endif
					endif
				endif
			endif

			text,155,87,%var20%,l,
			color,font,0_0_0
		endif

// Left Side of Page

	// 1st
	RSS,title,13,105,180,12,%var5%,,,
	button,13,105,180,12,14,4,0-highlight,12
	button,13,105,180,12,-1,6,var4=%var5%

	if,online
		image,5,107,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,107,MarkerBlue.png,t
			else
			image,5,107,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 2nd
	RSS,title,13,118,180,12,%var5%,,,
	button,13,118,180,12,14,4,0-highlight,12
	button,13,118,180,12,-1,6,var4=%var5%

	if,online
		image,5,120,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,120,MarkerBlue.png,t
			else
			image,5,120,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 3rd
	RSS,title,13,131,180,12,%var5%,,,
	button,13,131,180,12,14,4,0-highlight,12
	button,13,131,180,12,-1,6,var4=%var5%

	if,online
		image,5,133,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,133,MarkerBlue.png,t
			else
			image,5,133,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 4th
	RSS,title,13,144,180,12,%var5%,,,
	button,13,144,180,12,14,4,0-highlight,12
	button,13,144,180,12,-1,6,var4=%var5%

	if,online
		image,5,146,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,146,MarkerBlue.png,t
			else
			image,5,146,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 5th
	RSS,title,13,157,180,12,%var5%,,,
	button,13,157,180,12,14,4,0-highlight,12
	button,13,157,180,12,-1,6,var4=%var5%

	if,online
		image,5,159,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,159,MarkerBlue.png,t
			else
			image,5,159,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 6th
	RSS,title,13,170,180,12,%var5%,,,
	button,13,170,180,12,14,4,0-highlight,12
	button,13,170,180,12,-1,6,var4=%var5%

	if,online
		image,5,172,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,172,MarkerBlue.png,t
			else
			image,5,172,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 7th
	RSS,title,13,183,180,12,%var5%,,,
	button,13,183,180,12,14,4,0-highlight,12
	button,13,183,180,12,-1,6,var4=%var5%

	if,online
		image,5,185,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,185,MarkerBlue.png,t
			else
			image,5,185,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 8th
	RSS,title,13,196,180,12,%var5%,,,
	button,13,196,180,12,14,4,0-highlight,12
	button,13,196,180,12,-1,6,var4=%var5%

	if,online
		image,5,198,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,198,MarkerBlue.png,t
			else
			image,5,198,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 9th
	RSS,title,13,209,180,12,%var5%,,,
	button,13,209,180,12,14,4,0-highlight,12
	button,13,209,180,12,-1,6,var4=%var5%

	if,online
		image,5,211,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,211,MarkerBlue.png,t
			else
			image,5,211,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 10th
	RSS,title,13,222,180,12,%var5%,,,
	button,13,222,180,12,14,4,0-highlight,12
	button,13,222,180,12,-1,6,var4=%var5%

	if,online
		image,5,224,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,224,MarkerBlue.png,t
			else
			image,5,224,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 11th
	RSS,title,13,235,180,12,%var5%,,,
	button,13,235,180,12,14,4,0-highlight,12
	button,13,235,180,12,-1,6,var4=%var5%

	if,online
		image,5,237,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,237,MarkerBlue.png,t
			else
			image,5,237,MarkerRed.png,t
		endif
	endif

	addvar,var5,1

	// 12th
	RSS,title,13,248,180,12,%var5%,,,
	button,13,248,180,12,14,4,0-highlight,12
	button,13,248,180,12,-1,6,var4=%var5%

	if,online
		image,5,250,MarkerBlue.png,t
		else
		if,pagecached,%var5%
			image,5,250,MarkerBlue.png,t
			else
			image,5,250,MarkerRed.png,t
		endif
	endif

// Additional Buttons at Bottom of Page

	if,online

		imagebutton,79,268,linkonline.png,t,12,31,
		imagebutton,118,268,News_verbunden.png,t,-1,12,%var4%

		else

		imagebutton,79,268,linkoffline.png,t,12,30,

		if,pagecached,%var4%

			imagebutton,118,268,News_verbunden.png,t,-1,12,%var4%
			else
			imagebutton,118,268,News_getrennt.png,t,-1,12,%var4%
		endif
	endif

	addvar,var5,-11

	if,refresh
		image,78,262,RSS_Button_Background.png,t
		else

	endif

endregion,13,0


	///////////////////////////////////////
	// Region 14,0 RSS - Text (Output) - Right Side of Screen
	///////////////////////////////////////

	region,14,0,-1

		load,rss,%var2%
		image,5,87,headline_title_vertical_ext.png,t
		changefont,Tahoma,16,b
		RSS,title,5,87,200,18,%var4%,,,l
		changefont,Tahoma,13,
		RSS,description,3,110,440,250,%var4%,,,

	endregion,14,1

endregion,12,0

//============= END RSS Section =============\\

//=================================================
// 	Begin System Area
//
// 	REGION 17 - PAGE 0
//	Container for System Area
//	Subregions: 2
//	Vars used: 5
//	Dimensions:  447 x 75
//=================================================

region,17,0,10
defregion,17,0,85,447,288
cleararea,0,85,447,288

clearregion,2
clearregion,3
clearregion,4
clearregion,5
clearregion,6
clearregion,7
clearregion,8
clearregion,9
clearregion,10
clearregion,12

deactivatebuttons,2
deactivatebuttons,3
deactivatebuttons,4
deactivatebuttons,5
deactivatebuttons,6
deactivatebuttons,7
deactivatebuttons,8
deactivatebuttons,9
deactivatebuttons,10
deactivatebuttons,11
deactivatebuttons,12
deactivatebuttons,13
deactivatebuttons,14

activatebuttons,17

updateregions,15
updateregions,16

	image,125,83,headline_title_vertical.png,t

	changefont,Tahoma,18,b
	text,225,81,System Status,c
	changefont,Tahoma,13

	image,125,99,headline_title_verticalshade.png,t

// Battery==============================

	image,40,151,meters_background.png,t
	battery,bar,42,151,52,13,gradient_batterymain_gradient.png
	image,40,151,meters.png,t

	imagebutton,40,151,Metersbutton.png,tr,-1,0,%apps-2-2-highlight

	changefont,tahoma,11

	if,batterystatusunknown

		image,6,139,battery_unknown.png,t
		text,68,140,Battery: ?,c

		else

		if,charging

			image,6,139,battery_charging.png,t
			text,68,140,Charging.....,c

			else

			if,externalpower,=,true

				image,6,139,battery_charged.png,t
				text,68,140,Net,c

				else

				image,6,139,battery.png,t
				battery,remaining,68,140,Battery: ,%,c
			endif
		endif
	endif

	changefont,tahoma,13

	text,97,140,Voltage:,l
	battery,voltage,220,140,,V,r

	text,97,152,Battery Temp:,l
	battery,temperature,220,152,,C,r

	uptime,230,140,softreset,time,MMM-dd,    hh:mm tt,Soft Reset Time: , ,l
	uptime,230,153,softreset,duration,Soft Reset Duration: , Hr/Min,l
	uptime,230,166,battery,duration,Uptime: , Hr/Min,l

// Specifics=======================================

	changefont,tahoma,11

	memory,total,297,193,SP: , MB,c,%.1f

	image,270,205,meters_background.png,t
	memory,barused,272,205,52,13,gradient_Specialmain gradient.png
	image,270,205,meters.png,t

	imagebutton,270,205,Metersbutton.png,tr,-1,0,%apps-2-5-highlight

	memory,storageused,270,217,,mb,l,%.1f

	memory,programused,324,217,,,r,%.1f

	calcvar,var17,programmemoryusedpercent

		if,var,var17,1,><,50

			image,230,197,Special_leer.png,t

			else

			if,var,var17,51,><,80

				image,230,197,Special_voll.png,t

				else

				image,230,197,Special_hot.png,t
			endif
		endif

	changefont,tahoma,13

	text,328,198,Storage:,l
	memory,storagefree,417,198,,mb,r
	memory,storagefreepercent,445,198,/,%,r,%.0f

	text,328,211,Program:,l
	memory,programfree,417,211,,mb,r
	memory,programfreepercent,445,211,/,%,r,%.0f

// File Storage=====================================

	image,230,251,memory_big.png,t

	image,270,255,meters_background.png,t
	storage,1,bar,272,255,52,13,gradient_storage gradient.png
	image,270,255,meters.png,t

	imagebutton,270,255,Metersbutton.png,tr,-1,0,%apps-2-4-highlight

	changefont,tahoma,11

	text,297,243,File-Store,c
	storage,1,total,297,268,,mb,c

	changefont,tahoma,13	

	text,328,248,Used: ,l
	storage,1,used,415,248,, mb,r
	storage,1,usedpercent,445,248,/,%,r,%.0f

	text,328,261,Free: ,l
	storage,1,free,415,261,, mb,r
	storage,1,freepercent,445,261,/,%,r,%.0f

// SD Card==========================================

	image,14,201,secure_digital_SanDisk512.png,t

	image,40,205,meters_background.png,t
	storage,2,bar,42,205,52,13,gradient_storage gradient.png
	image,40,205,meters.png,t

	imagebutton,40,205,Metersbutton.png,tr,-1,0,%apps-2-4-highlight

	changefont,tahoma,11	

	text,68,193,SD Card,c
	storage,2,total,68,217,, mb,c

	changefont,tahoma,13	

	text,97,198,Used: ,l
	storage,2,used,192,198,, mb,r
	storage,2,usedpercent,220,198,/,%,r,%.0f

	text,97,211,Free: ,l
	storage,2,free,192,211,, mb,r
	storage,2,freepercent,220,211,/,%,r,%.0f

// CF Card==========================================

	image,10,251,compact_flash_SD512.png,t

	image,40,255,meters_background.png,t
	storage,3,bar,42,255,52,13,gradient_storage gradient.png
	image,40,255,meters.png,t

	imagebutton,40,255,Metersbutton.png,tr,-1,0,%apps-2-4-highlight

	changefont,tahoma,11	

	text,68,243,CF Card,c
	storage,3,total,68,268,, mb,c

	changefont,tahoma,13	

	text,97,248,Used: ,l
	storage,3,used,192,248,, mb,r
	storage,3,usedpercent,220,248,/,%,r,%.0f

	text,97,261,Free: ,l
	storage,3,free,192,261,, mb,r
	storage,3,freepercent,220,261,/,%,r,%.0f

// Setup Quicklaunch Icon Size and Change Theme ====================

	if,var,var3,,=,1

		imagebutton,5,87,Body-01.png,t,-1,6,var3=2,17

	else

		imagebutton,5,87,Body-01.png,t,-1,6,var3=1,17

	endif

	//text,5,122,QL Icons,l

//	text,50,87,%var3%,c  // Tells which set of icons are being called. (I like that for troubleshooting;
			     // Thanks goes to UK_Skinner)

	if,var,var24,,=,1

		options,imagedir,Images\Icons-2B1
		imagebutton,45,99,buttonchanging.png,t,-1,6,var24=2,-1
		
		else

		options,imagedir,Images\Icons-2B
		imagebutton,45,99,buttonchanging.png,t,-1,6,var24=1,-1

	endif

	text,47,99,Change Theme,l
	//image,205,111,Time-Center_ActualTime.png,
	//time,220,113,-1,4,c,
	imagebutton,205,111,Time-Center_LoadTime.png,tr,-1,0,%apps-6-7-highlight
	imagebutton,325,99,Center_About.png,,18,4,0,17
	text,330,99,About,l

endregion,17,0

//============= END System Status Area =============\\

//=================================================
// 	Begin System About Region
//
// 	REGION 18 - PAGE 0
//	Container for System About Area
//	Subregions:
//	Vars used:
//	Dimensions:  447 x 75
//=================================================

region,18,0,-1

deactivatebuttons,17

activatebuttons,18

	image,303,112,System_about_popup.png

	changefont,Tahoma,12,b
	text,309,114,Owner Info,l

	imagebutton,305,112,center_about_popup_button.png,tr,19,4,0,18
	button,305,112,100,15,19,4,999

	text,309,129,Skin Version,l
	imagebutton,305,129,center_about_popup_button.png,tr,19,4,1,18
	button,305,129,100,15,19,4,999

	color,font,255_0_0
	text,335,172,Cancel,l
	imagebutton,305,172,center_about_popup_button_cancel.png,tr,18,4,999,17

	color,font,0_0_0
	changefont,Tahoma,12,

endregion,18,0

//============= END System About Area =============\\

//=================================================
// 	Begin User Information Region
//
// 	REGION 19 - PAGE 0
//	Container for User Information Area
//	Subregions:
//	Vars used:
//	Dimensions:  447 x 75
//=================================================

region,19,0,10

deactivatebuttons,17
deactivatebuttons,18

activatebuttons,19

clearregion,18

	image,120,112,centerpopup.png

//===================================
// Closebox Button
//===================================

	imagebutton,314,114,popup_closebox.png,t,19,4,999,17

//===================================
// User Data
//===================================

	changefont,Tahoma,12,b

	text,230,114,Owner,c
	text,230,129,Information,c

	changefont,Tahoma,12,

//===================================
// User Details
//===================================

	image,135,151,%owner image%,

	text,230,166,Name:,l
	changefont,Tahoma,12,b
	text,230,178,%owner name%,l
	changefont,Tahoma,12,

	text,135,236,Address:,l
	text,135,248,City - State:,l
	text,135,260,Phone:,l

	text,200,236,%owner address%,l
	text,200,248,%owner address2%,l
	text,200,260,%owner phone%,l

endregion,19,0

//=================================================
// 	Begin Skin Info Region
//
// 	REGION 19 - PAGE 1
//	Container for Skin Information Area
//	Subregions:
//	Vars used:
//	Dimensions:  447 x 75
//=================================================

region,19,1,10

	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,19

	clearregion,18

	image,130,128,AboutPopup.png

	imagebutton,302,130,popup_closebox.png,t,19,4,999,17

	image,140,159,2Bskin.png
	image,272,159,2Bskin.png

	changefont,Tahoma,12,b
	text,220,130,2 B - V G A,c
	changefont,Tahoma,12,

	text,220,146,Skin Version,c

	text,220,156,1.00,c
	text,220,166,Date: January 08th 2005,c
	changefont,Tahoma,11,
	text,220,181,Administrator:,c
	changefont,Tahoma,12,b
	text,220,192,Ripper,c
	changefont,Tahoma,12,

endregion,19,1

//============= END System Info Region =============\\

//=================================================
// 	Begin QuickLaunch Area
//
// 	REGION 15 - PAGE 0
//	Container for QuickLaunch Area
//	Subregions: 2
//	Vars used: 5
//	Dimensions:  449 x 75
//=================================================

//     In the config app, (unless you are using 10 or more shortcuts in a group), create 1
//     extra "blank" shortcut in each shortcup group.  Make SURE it's the LAST shortcut.
//     By blank, I mean no defined path or name.  This is to ensure your last shortcut does
//     not APPEAR to keep repeating itself.  I'm sure this is a bug but can't be fixed..

// This top section defines/laysout the menu buttons.

region,15,0,10
	defregion,15,0,0,449,75,3
	offset,offset_-1,offset_-1
	color,font,-1_4_-1
	offsetadd,0,1
	initvar,var12,1

	activatebuttons,1
	activatebuttons,15
	activatebuttons,16

	updateregions,1
	updateregions,15
	updateregions,16

	if,var,var12,,=,1
		changefont,Tahoma,12,b
		imagebutton,0,1,launcher_1_select.png,t,-1,6,var12=1,1,-1
		imagebutton,90,1,launcher_2.png,t,-1,6,var12=2,1,-1
		imagebutton,180,1,launcher_3.png,t,-1,6,var12=3,1,-1
		imagebutton,270,1,launcher_4.png,t,-1,6,var12=4,1,-1
		imagebutton,360,1,launcher_5.png,t,-1,6,var12=5,1,-1
		color,font,7_75_150
		color,shadow,255_255_255
		text,30,5,Main,ls
		color,font,255_255_255
		color,shadow,40_40_40
		text,110,3,Productivity,ls
		text,205,3,Games,ls
		text,295,3,Utilities,ls
		text,380,3,Internet,ls
		color,font,-1_4_-1
		color,shadow,255_255_255
		changefont,Tahoma,11
	else
		if,var,var12,,=,2
			color,font,255_255_255
			color,shadow,40_40_40
			changefont,Tahoma,12,b
			imagebutton,0,1,launcher_1.png,t,-1,6,var12=1,1,-1
			imagebutton,90,1,launcher_2_select.png,t,-1,6,var12=2,1,-1
			imagebutton,180,1,launcher_3.png,t,-1,6,var12=3,1,-1
			imagebutton,270,1,launcher_4.png,t,-1,6,var12=4,1,-1
			imagebutton,360,1,launcher_5.png,t,-1,6,var12=5,1,1-1
			color,font,7_75_150
			color,shadow,255_255_255
			text,110,5,Productivity,ls
			color,font,255_255_255
			color,shadow,40_40_40
			text,30,3,Main,ls
			text,205,3,Games,ls
			text,295,3,Utilities,ls
			text,380,3,Internet,ls
			color,font,-1_4_-1
			color,shadow,255_255_255
			changefont,Tahoma,11
		else
			if,var,var12,,=,3
				color,font,255_255_255
				color,shadow,40_40_40
				changefont,Tahoma,12,b
				imagebutton,0,1,launcher_1.png,t,-1,6,var12=1,1,-1
				imagebutton,90,1,launcher_2.png,t,-1,6,var12=2,1,-1
				imagebutton,180,1,launcher_3_select.png,t,-1,6,var12=3,1,-1
				imagebutton,270,1,launcher_4.png,t,-1,6,var12=4,1,-1
				imagebutton,360,1,launcher_5.png,t,-1,6,var12=5,1,-1
				color,font,7_75_150
				color,shadow,255_255_255
				text,205,5,Games,ls
				color,font,255_255_255
				color,shadow,40_40_40
				text,30,3,Main,ls
				text,110,3,Productivity,ls
				text,295,3,Utilities,ls
				text,380,3,Internet,ls
				color,font,-1_4_-1
				color,shadow,255_255_255
				changefont,Tahoma,11
			else
				if,var,var12,,=,4
					color,font,255_255_255
					color,shadow,40_40_40
					changefont,Tahoma,12,b
					imagebutton,0,1,launcher_1.png,t,-1,6,var12=1,1,-1
					imagebutton,90,1,launcher_2.png,t,-1,6,var12=2,1,-1
					imagebutton,180,1,launcher_3.png,t,-1,6,var12=3,1,-1
					imagebutton,270,1,launcher_4_select.png,t,-1,6,var12=4,1,-1
					imagebutton,360,1,launcher_5.png,t,-1,6,var12=5,1,-1
					color,font,7_75_150
					color,shadow,255_255_255
					text,295,5,Utilities,ls
					color,font,255_255_255
					color,shadow,40_40_40
					text,30,3,Main,ls
					text,110,3,Productivity,ls
					text,205,3,Games,ls
					text,380,3,Internet,ls
					color,font,-1_4_-1
					color,shadow,255_255_255
					changefont,Tahoma,11
				else
					if,var,var12,,=,5
						color,font,255_255_255
						color,shadow,40_40_40
						changefont,Tahoma,12,b
						imagebutton,0,1,launcher_1.png,t,-1,6,var12=1,1,-1
						imagebutton,90,1,launcher_2.png,t,-1,6,var12=2,1,-1
						imagebutton,180,1,launcher_3.png,t,-1,6,var12=3,1,-1
						imagebutton,270,1,launcher_4.png,t,-1,6,var12=4,1,-1
						imagebutton,360,1,launcher_5_select.png,t,-1,6,var12=5,1,-1
						color,font,7_75_150
						color,shadow,255_255_255
						text,380,5,Internet,ls
						color,font,255_255_255
						color,shadow,40_40_40
						text,30,3,Main,ls
						text,110,3,Productivity,ls
						text,205,3,Games,ls
						text,295,3,Utilities,ls
						color,font,-1_4_-1
						color,shadow,255_255_255
						changefont,Tahoma,11
					else
					endif
				endif
			endif
		endif
	endif



	//=================================================
	// REGION 16 - PAGE 1
	//	Loads Shortcuts
	//	Vars used: 12
	//=================================================

	// The next two sections defines/laysout the icons.

	region,16,0,-1

  	if,var,var3,,=,1    //  Change this VAR to 2 if you want the initial QL icons to be small!

	shortcut,7,28,apps-%var12%-1,s
	button,7,28,32,32,-1,0,%apps-%var12%-1-highlight
	changefont,tahoma,10,b
	text,22,66,[name],cs
		shortcut,56,28,apps-%var12%-2,s
		button,56,28,32,32,-1,0,%apps-%var12%-2-highlight
		text,70,66,[name],cs
			shortcut,100,28,apps-%var12%-3,s
			button,100,28,32,32,-1,0,%apps-%var12%-3-highlight
			text,116,66,[name],cs
				shortcut,144,28,apps-%var12%-4,s
				button,144,28,32,32,-1,0,%apps-%var12%-4-highlight
				text,159,66,[name],cs
					shortcut,188,28,apps-%var12%-5,s
					button,188,28,32,32,-1,0,%apps-%var12%-5-highlight
					text,202,66,[name],cs
						shortcut,232,28,apps-%var12%-6,s
						button,232,28,32,32,-1,0,%apps-%var12%-6-highlight
						text,245,66,[name],cs
							shortcut,276,28,apps-%var12%-7,s
							button,276,28,32,32,-1,0,%apps-%var12%-7-highlight
							text,293,66,[name],cs
								shortcut,320,28,apps-%var12%-8,s
								button,320,28,32,32,-1,0,%apps-%var12%-8-highlight
								text,336,66,[name],cs
									shortcut,364,28,apps-%var12%-9,s
									button,364,28,32,32,-1,0,%apps-%var12%-9-highlight
									text,379,66,[name],cs
										shortcut,407,28,apps-%var12%-10,s
										button,407,28,32,32,-1,0,%apps-%var12%-10-highlight
										text,422,66,[name],cs

		shortcut,0,0,blank,s  //Prevent text from appearing in other sections

   	else

   	shortcut,7,28,apps-%var12%-1,l
   	button,7,28,32,32,-1,0,%apps-%var12%-1-highlight
   	changefont,tahoma,10,b
   	text,22,66,[name],cs
   		shortcut,56,28,apps-%var12%-2,l
   		button,56,28,32,32,-1,0,%apps-%var12%-2-highlight
   		text,70,66,[name],cs
   			shortcut,100,28,apps-%var12%-3,l
   			button,100,28,32,32,-1,0,%apps-%var12%-3-highlight
   			text,116,66,[name],cs
   				shortcut,144,28,apps-%var12%-4,l
   				button,144,28,32,32,-1,0,%apps-%var12%-4-highlight
   				text,159,66,[name],cs
   					shortcut,188,28,apps-%var12%-5,l
   					button,188,28,32,32,-1,0,%apps-%var12%-5-highlight
   					text,202,66,[name],cs
   						shortcut,232,28,apps-%var12%-6,l
   						button,232,28,32,32,-1,0,%apps-%var12%-6-highlight
   						text,245,66,[name],cs
   							shortcut,276,28,apps-%var12%-7,l
   							button,276,28,32,32,-1,0,%apps-%var12%-7-highlight
   							text,293,66,[name],cs
   								shortcut,320,28,apps-%var12%-8,l
   								button,320,28,32,32,-1,0,%apps-%var12%-8-highlight
   								text,336,66,[name],cs
   									shortcut,364,28,apps-%var12%-9,l
   									button,364,28,32,32,-1,0,%apps-%var12%-9-highlight
   									text,379,66,[name],cs
   										shortcut,407,28,apps-%var12%-10,l
   										button,407,28,32,32,-1,0,%apps-%var12%-10-highlight
   										text,422,66,[name],cs

   		shortcut,0,0,blank,l  //Prevent text from appearing in other sections

        endif

        endregion,16,0

	//=================================================
	// REGION 16 - PAGE 2
	//	Loads Shortcuts
	//	Vars used: 16
	//=================================================
	region,16,2,-1

	if,var,var24,,=,1

		options,imagedir,Images\Icons-2B1

		else

		options,imagedir,Images\Icons-2B

	endif

  	if,var,var24,,=,1

	shortcut,7,28,apps-%var12%-11,s
	button,7,28,32,32,-1,0,%apps-%var12%-11-highlight
		shortcut,56,28,apps-%var12%-12,s
		button,56,28,32,32,-1,0,%apps-%var12%-12-highlight
			shortcut,100,28,apps-%var12%-13,s
			button,100,28,32,32,-1,0,%apps-%var12%-13-highlight
				shortcut,144,28,apps-%var12%-14,s
				button,144,28,32,32,-1,0,%apps-%var12%-14-highlight
					shortcut,188,28,apps-%var12%-15,s
					button,188,28,32,32,-1,0,%apps-%var12%-15-highlight
						shortcut,232,28,apps-%var12%-16,s
						button,232,28,32,32,-1,0,%apps-%var12%-16-highlight
							shortcut,276,28,apps-%var12%-17,s
							button,276,28,32,32,-1,0,%apps-%var12%-17-highlight
								shortcut,320,28,apps-%var12%-18,s
								button,320,28,32,32,-1,0,%apps-%var12%-18-highlight
									shortcut,364,28,apps-%var12%-19,s
									button,364,28,32,32,-1,0,%apps-%var12%-19-highlight
										shortcut,407,28,apps-%var12%-20,s
										button,407,28,32,32,-1,0,%apps-%var12%-20-highlight

		shortcut,0,0,blank,l	//Prevent text from appearing in other sections

	else

   	if,var,var24,,=,2

	shortcut,7,28,apps-%var12%-11,s
	button,7,28,32,32,-1,0,%apps-%var12%-11-highlight
		shortcut,56,28,apps-%var12%-12,s
		button,56,28,32,32,-1,0,%apps-%var12%-12-highlight
			shortcut,100,28,apps-%var12%-13,s
			button,100,28,32,32,-1,0,%apps-%var12%-13-highlight
				shortcut,144,28,apps-%var12%-14,s
				button,144,28,32,32,-1,0,%apps-%var12%-14-highlight
					shortcut,188,28,apps-%var12%-15,s
					button,188,28,32,32,-1,0,%apps-%var12%-15-highlight
						shortcut,232,28,apps-%var12%-16,s
						button,232,28,32,32,-1,0,%apps-%var12%-16-highlight
							shortcut,276,28,apps-%var12%-17,s
							button,276,28,32,32,-1,0,%apps-%var12%-17-highlight
								shortcut,320,28,apps-%var12%-18,s
								button,320,28,32,32,-1,0,%apps-%var12%-18-highlight
									shortcut,364,28,apps-%var12%-19,s
									button,364,28,32,32,-1,0,%apps-%var12%-19-highlight
										shortcut,407,28,apps-%var12%-20,s
										button,407,28,32,32,-1,0,%apps-%var12%-20-highlight

		shortcut,0,0,blank,l	//Prevent text from appearing in other sections
    	endif

  	endif
  endregion,16,2

changefont,tahoma,12,

endregion,16,0

//------  It is marked there, for now, to give you a guide for the quicklaunch area.-----\\
image,0,80,dotted_line.png

//============= END Quick Launch =============\\


//=================================================
// 	Begin Navigation Section (Button Area)
//
// 	REGION 1 - PAGE 0
//	Container for Navigation Icons
//	Subregions: None...maybe :-)
//	Vars used:
//	Dimensions:  29 x 288
//=================================================

region,1,0,10
defregion,1,448,0,29,288,1


//== Main Button ==//

	imagebutton,450,0,sidebar1.png,tr,2,4,0,1

	button,450,3,29,29,3,4,999,
	button,450,3,29,29,7,4,999,
	button,450,3,29,29,8,4,999,
	button,450,3,29,29,9,4,999,
	button,450,3,29,29,10,4,999,
	button,450,3,29,29,11,4,999,
	button,450,3,29,29,12,4,999,
	button,450,3,29,29,15,4,0,
	button,450,3,29,29,16,4,0,
	button,450,3,29,29,17,4,999,
	button,450,3,29,29,18,4,999,

	button,450,3,29,29,2,10,0,2
	button,450,3,29,29,2,22,0,2
	button,450,3,29,29,2,23,0,2

	button,450,3,29,29,4,4,0
	button,450,3,29,29,5,4,0
	button,450,3,29,29,6,4,0

//== Weather Button ==//


	if,region,3,0

		imagebutton,450,32,sidebar2.png,tr,3,4,0,1

		else

		imagebutton,450,32,sidebar2.png,tr,3,4,0,1

		button,450,32,29,29,2,4,999,3
		button,450,32,29,29,5,4,999,3
		button,450,32,29,29,6,4,999,3
		button,450,32,29,29,9,4,999,3
		button,450,32,29,29,10,4,999,3
		button,450,32,29,29,11,4,999,
		button,450,32,29,29,12,4,999,
		button,450,32,29,29,13,4,999,
		button,450,32,29,29,14,4,999,
		button,450,32,29,29,15,4,0,
		button,450,32,29,29,16,4,0,
		button,450,32,29,29,17,4,999,
		button,450,32,29,29,18,4,999,

	endif

//== AGENDA BUTTON ==//

	if,region,9,0

		imagebutton,450,64,sidebar3.png,tr,9,4,0,1

		button,450,61,29,29,18,4,999,

		button,450,64,29,29,9,10,0,9
		button,450,64,29,29,9,22,0,9
		button,450,64,29,29,9,23,0,9
		button,450,64,29,29,9,10,1,9
		button,450,64,29,29,9,22,1,9
		button,450,64,29,29,9,23,1,9

		else

		imagebutton,450,64,sidebar3.png,tr,9,4,0,1

		button,450,64,29,29,2,4,999,
		button,450,64,29,29,3,4,999,
		button,450,64,29,29,4,4,999,
		button,450,64,29,29,5,4,999,
		button,450,64,29,29,6,4,999,
		button,450,64,29,29,7,4,999,
		button,450,64,29,29,8,4,999,
		button,450,64,29,29,10,4,999,
		button,450,64,29,29,11,4,999,
		button,450,64,29,29,12,4,999,
		button,450,64,29,29,13,4,999,
		button,450,64,29,29,14,4,999,
		button,450,64,29,29,15,4,0,
		button,450,64,29,29,16,4,0,
		button,450,64,29,29,17,4,999,
		button,450,64,29,29,18,4,999,

		button,450,64,29,29,9,10,0,9
		button,450,64,29,29,9,22,0,9
		button,450,64,29,29,9,23,0,9
		button,450,64,29,29,9,10,1,9
		button,450,64,29,29,9,22,1,9
		button,450,64,29,29,9,23,1,9

	endif

//== Tasks Button ==//

	if,region,10,0

		imagebutton,450,96,sidebar4.png,tr,10,4,0,1

		button,450,96,29,29,10,10,0,10
		button,450,96,29,29,10,22,0,10
		button,450,96,29,29,10,23,0,10
		button,450,96,29,29,10,10,1,10

		else

		imagebutton,450,96,sidebar4.png,tr,10,4,0,1

		button,450,96,29,29,2,4,999,
		button,450,96,29,29,3,4,999,
		button,450,96,29,29,4,4,999,
		button,450,96,29,29,5,4,999,
		button,450,96,29,29,6,4,999,
		button,450,96,29,29,7,4,999,
		button,450,96,29,29,8,4,999,
		button,450,96,29,29,9,4,999,
		button,450,96,29,29,11,4,999,
		button,450,96,29,29,12,4,999,
		button,450,96,29,29,13,4,999,
		button,450,96,29,29,14,4,999,
		button,450,96,29,29,15,4,0,
		button,450,96,29,29,16,4,0,
		button,450,96,29,29,17,4,999,
		button,450,96,29,29,18,4,999,

		button,450,96,29,29,10,10,0,10
		button,450,96,29,29,10,22,0,10
		button,450,96,29,29,10,23,0,10
		button,450,96,29,29,10,10,1,10

	endif

//== Time Zone Button ==//

	if,region,11,0

		imagebutton,450,128,sidebar6.png,tr,11,4,0,1

		else

		if,region,11,1

			imagebutton,450,128,sidebar6.png,tr,11,4,1,1

			else

			imagebutton,450,128,sidebar6.png,tr,11,4,0,1

			button,450,128,29,29,2,4,999,
			button,450,128,29,29,3,4,999,
			button,450,128,29,29,4,4,999,
			button,450,128,29,29,5,4,999,
			button,450,128,29,29,6,4,999,
			button,450,128,29,29,7,4,999,
			button,450,128,29,29,8,4,999,
			button,450,128,29,29,9,4,999,
			button,450,128,29,29,10,4,999,
			button,450,128,29,29,12,4,999,
			button,450,128,29,29,13,4,999,
			button,450,128,29,29,14,4,999,
			button,450,128,29,29,15,4,0,
			button,450,128,29,29,16,4,0,
			button,450,128,29,29,17,4,999,
			button,450,128,29,29,18,4,999,

		endif
	endif

//== RSS Button ==//

	if,region,12,0

		imagebutton,450,160,sidebar5.png,tr,12,4,0,1

		button,450,148,29,29,13,4,0,1
		button,450,148,29,29,14,4,0,1

		else

		imagebutton,450,160,sidebar5.png,tr,12,4,0,1

		button,450,160,29,29,13,4,0,1
		button,450,160,29,29,14,4,0,1

		button,450,160,29,29,2,4,999,
		button,450,160,29,29,3,4,999,
		button,450,160,29,29,4,4,999,
		button,450,160,29,29,5,4,999,
		button,450,160,29,29,6,4,999,
		button,450,160,29,29,7,4,999,
		button,450,160,29,29,8,4,999,
		button,450,160,29,29,9,4,999,
		button,450,160,29,29,10,4,999,
		button,450,160,29,29,11,4,999,
		button,450,160,29,29,15,4,0,
		button,450,160,29,29,16,4,0,
		button,450,160,29,29,17,4,999,
		button,450,160,29,29,18,4,999,
		button,450,160,29,29,19,4,999,

	endif

//== System Button ==//

	if,region,17,0

		imagebutton,450,192,sidebar7.png,tr,17,4,0,1

		else

			imagebutton,450,192,sidebar7.png,tr,17,4,0,1

			button,450,192,29,29,2,4,999,
			button,450,192,29,29,3,4,999,
			button,450,192,29,29,4,4,999,
			button,450,192,29,29,5,4,999,
			button,450,192,29,29,6,4,999,
			button,450,192,29,29,7,4,999,
			button,450,192,29,29,8,4,999,
			button,450,192,29,29,9,4,999,
			button,450,192,29,29,10,4,999,
			button,450,192,29,29,11,4,999,
			button,450,192,29,29,12,4,999,
			button,450,192,29,29,13,4,999,
			button,450,192,29,29,14,4,999,
			button,450,192,29,29,15,4,0,
			button,450,192,29,29,16,4,0,

	endif

//== Launch TPconfig App Button ==//


		imagebutton,450,224,sidebar8.png,t,-1,0,%apps-4-1,
//		imagebutton,450,256,sidebar9.png,tr,-1,0,%apps-4-1-highlight


//== Suspend Button ==//

imagebutton,450,256,sidebar9.png,tr,-1,0,%apps-4-2-highlight

endregion,1,0

offset,0,288  // Needed only if added to bottom of skin.

//------------------ This line can be masked out if you want dotted line removed.
//------  It is marked there, for now, to give you a guide for the toolbar (quicklaunch)
//image,0,80,dotted_line.png



